import request from '@/utils/request'

// 查询所属教师列表
export function listTeacher(query) {
  return request({
    url: '/product/teacher/list4',
    method: 'get',
    params: query
  })
}

// 查询所属教师详细
export function getTeacher(teacherId) {
  return request({
    url: '/product/teacher/getInfo4/' + teacherId,
    method: 'get'
  })
}

// 新增所属教师
export function addTeacher(data) {
  return request({
    url: '/product/teacher/add4',
    method: 'post',
    data: data
  })
}

// 修改所属教师
export function updateTeacher(data) {
  return request({
    url: '/product/teacher/edit4',
    method: 'put',
    data: data
  })
}

// 删除所属教师
export function delTeacher(teacherId) {
  return request({
    url: '/product/teacher/remove4/' + teacherId,
    method: 'delete'
  })
}
